let env = ''
let ua = navigator.userAgent.toLowerCase();//获取判断用的对象

if (window.__wxjs_environment === 'miniprogram') {    //  微信小程序
  env = 'mini'
} else if (ua.match(/MicroMessenger/i) === "micromessenger") {   //  微信浏览器
  env = 'wx'
} else {
  env = 'app'
}

export default env
